package com.example.rbacmanage.mapper;

import com.example.rbacmanage.base.BaseMapper;
import com.example.rbacmanage.entity.Chat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 聊天Mapper接口
 *
 * @author zmd
 */
@Mapper
public interface ChatMapper extends BaseMapper<Chat> {

    List<Chat> selectUsers(Chat chat);

    List<Chat> selectChatShop(Chat chat);

    Chat selectLastByShopId(@Param("shopId") Long shopId);
    Chat selectLastByShopIdNoSendRole(@Param("shopId") Long shopId);
}
